Optimal. Leaf size=73 \[ -\frac {2 B \sqrt {b x+c x^2}}{x}-\frac {2 A \left (b x+c x^2\right )^{3/2}}{3 b x^3}+2 B \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b x+c x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {806, 676, 634,
212} \begin {gather*} -\frac {2 A \left (b x+c x^2\right )^{3/2}}{3 b x^3}-\frac {2 B \sqrt {b x+c x^2}}{x}+2 B \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b x+c x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 634
Rule 676
Rule 806
Rubi steps
\begin {align*} \int \frac {(A+B x) \sqrt {b x+c x^2}}{x^3} \, dx &=-\frac {2 A \left (b x+c x^2\right )^{3/2}}{3 b x^3}+B \int \frac {\sqrt {b x+c x^2}}{x^2} \, dx\\ &=-\frac {2 B \sqrt {b x+c x^2}}{x}-\frac {2 A \left (b x+c x^2\right )^{3/2}}{3 b x^3}+(B c) \int \frac {1}{\sqrt {b x+c x^2}} \, dx\\ &=-\frac {2 B \sqrt {b x+c x^2}}{x}-\frac {2 A \left (b x+c x^2\right )^{3/2}}{3 b x^3}+(2 B c) \text {Subst}\left (\int \frac {1}{1-c x^2} \, dx,x,\frac {x}{\sqrt {b x+c x^2}}\right )\\ &=-\frac {2 B \sqrt {b x+c x^2}}{x}-\frac {2 A \left (b x+c x^2\right )^{3/2}}{3 b x^3}+2 B \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} x}{\sqrt {b x+c x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 91, normalized size = 1.25 \begin {gather*} -\frac {2 \sqrt {x (b+c x)} (A b+3 b B x+A c x)}{3 b x^2}-\frac {2 B \sqrt {c} \sqrt {x (b+c x)} \log \left (-\sqrt {c} \sqrt {x}+\sqrt {b+c x}\right )}{\sqrt {x} \sqrt {b+c x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.53, size = 92, normalized size = 1.26
method | result | size |
risch | \(-\frac {2 \left (c x +b \right ) \left (A c x +3 b B x +A b \right )}{3 x \sqrt {x \left (c x +b \right )}\, b}+B \sqrt {c}\, \ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x}\right )\) | \(66\) |
default | \(-\frac {2 A \left (c \,x^{2}+b x \right )^{\frac {3}{2}}}{3 b \,x^{3}}+B \left (-\frac {2 \left (c \,x^{2}+b x \right )^{\frac {3}{2}}}{b \,x^{2}}+\frac {2 c \left (\sqrt {c \,x^{2}+b x}+\frac {b \ln \left (\frac {\frac {b}{2}+c x}{\sqrt {c}}+\sqrt {c \,x^{2}+b x}\right )}{2 \sqrt {c}}\right )}{b}\right )\) | \(92\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 85, normalized size = 1.16 \begin {gather*} {\left (\sqrt {c} \log \left (2 \, c x + b + 2 \, \sqrt {c x^{2} + b x} \sqrt {c}\right ) - \frac {2 \, \sqrt {c x^{2} + b x}}{x}\right )} B - \frac {2}{3} \, A {\left (\frac {\sqrt {c x^{2} + b x} c}{b x} + \frac {\sqrt {c x^{2} + b x}}{x^{2}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.64, size = 141, normalized size = 1.93 \begin {gather*} \left [\frac {3 \, B b \sqrt {c} x^{2} \log \left (2 \, c x + b + 2 \, \sqrt {c x^{2} + b x} \sqrt {c}\right ) - 2 \, \sqrt {c x^{2} + b x} {\left (A b + {\left (3 \, B b + A c\right )} x\right )}}{3 \, b x^{2}}, -\frac {2 \, {\left (3 \, B b \sqrt {-c} x^{2} \arctan \left (\frac {\sqrt {c x^{2} + b x} \sqrt {-c}}{c x}\right ) + \sqrt {c x^{2} + b x} {\left (A b + {\left (3 \, B b + A c\right )} x\right )}\right )}}{3 \, b x^{2}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x \left (b + c x\right )} \left (A + B x\right )}{x^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 151 vs.
\(2 (61) = 122\).
time = 1.16, size = 151, normalized size = 2.07 \begin {gather*} -B \sqrt {c} \log \left ({\left | -2 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x}\right )} \sqrt {c} - b \right |}\right ) + \frac {2 \, {\left (3 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x}\right )}^{2} B b \sqrt {c} + 3 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x}\right )}^{2} A c^{\frac {3}{2}} + 3 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x}\right )} A b c + A b^{2} \sqrt {c}\right )}}{3 \, {\left (\sqrt {c} x - \sqrt {c x^{2} + b x}\right )}^{3} \sqrt {c}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c\,x^2+b\,x}\,\left (A+B\,x\right )}{x^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________